import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

const state={
    count:0,
    price:999
}

const mutations = {
    increment(state){
        state.count++
    },
    decrement(state,{n}){
        state.price -=n
    }
    
}

export default new Vuex.Store({
    state,
    mutations
})